$(function() {
	//构建机构类别下拉框
	createCategorySelect(document.getElementById("categoryId"), "2");
	//构建所在地区的下拉框
	createProvSelect(document.getElementById("province"));
	focusById();
});

function showErrMsg(id,msg){
	$("#" + id + "Tip").text(msg);
	$("#" + id + "Msg").show();
}

function hideMsg(id) {
	$("#" + id + "Msg").hide();
}

function focusById(){
	$("#company").focus(function(){
		hideMsg("company");
	});
	$("#province,#city,#area").focus(function(){
		hideMsg("area");
	});
	$("#stuffFile").focus(function(){
		hideMsg("stuffFile");
	});
	$("#createConCopyFile").focus(function(){
		hideMsg("createConCopyFile");
	});
	$("#excuteConCopyFile").focus(function(){
		hideMsg("excuteConCopyFile");
	});
	$("#intro").focus(function(){
		hideMsg("intro");
	});
	$("#contact").focus(function(){
		hideMsg("contact");
	});
/*	$("#job").focus(function(){
		hideMsg("job");
	});*/
	$("#phone").focus(function() {
		hideMsg("phone");
	});
	$("#wechat").focus(function(){
		hideMsg("wechat");
	});
}